package com.twu.biblioteca;

/**
 * Created by Janu on 21/06/14.
 * enum Main Menu
 */
public enum MainMenu {

    CUSTOMER(1),
    LIBRARIAN(2),
    EXIT(3);

    private int option;

    MainMenu(int opt){
        this.option = opt;
    }

    public static String getMainMenu() {

        MainMenu[] options = MainMenu.values();

        String mainMenu = "";

        for(MainMenu option: options) mainMenu = mainMenu+ option.option+". "+option.name() + "\n";

        return mainMenu;
    }

}
